<template>
  <div>
    <h3 class="title">App组件</h3>
    <hr />
    <loading />
    <button @click="showDialog">显示</button>
  </div>
</template>

<script>
import child from './components/child.vue'
export default {
  components: {
    child
  },
  data() {
    return {
      title: '我是父组件的title'
    }
  },
  methods: {
    showDialog() {
      return this.$dialog()
    }
  }
}
</script>

<style lang="scss" scoped></style>
